<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
             xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
             targetNamespace="Examples">

  <process id="throwException" isExecutable="true">

    <startEvent id="start" />
    <sequenceFlow id="flow1" sourceRef="start" targetRef="sub" />
    <subProcess id="sub" >
      <startEvent id="subStart" />
      <serviceTask id="servicetask"
                   camunda:delegateExpression="#{serviceTaskBean}"
                   camunda:async="true" />
      <endEvent id="subEnd" />
      <sequenceFlow sourceRef="subStart" targetRef="servicetask"/>
      <sequenceFlow sourceRef="servicetask" targetRef="subEnd"/>
    </subProcess>
    <sequenceFlow id="flow2" sourceRef="sub" targetRef="end" />
    <endEvent id="end" />

  </process>

</definitions>
